package com.cdht.exception;

/**
 * 
 * @author 夜雨妖惜
 *
 */
public class DataException extends RuntimeException {
	
	private static final long serialVersionUID = 1L;

	public DataException(String message) {
        super(message);
    }

	
    public DataException(String message, Throwable cause) {
        super(message, cause);
    }
    
    public static void throwException(Exception e) {
    	throw new DataException(e.getMessage());
    }
    public static void throwException(String e) {
    	throw new DataException(e);
    }
}
